<?php
/**
 * Created by PhpStorm.
 * User: palidin
 * Date: 2019/7/31
 * Time: 15:05
 */

namespace App\Http\Requests\Product;


class ProductExtraPricePo
{
//    const TYPE_DISCOUNT = 0;
    const TYPE_SECKILL = 1;
    const TYPE_SPECIAL = 2;
    const TYPE_PROMOTION = 3;

    public $relation_id;//活动id
    public $price;//活动价
    public $type;//活动类型

    public function __construct(ProductPricePo $po, $type)
    {
        $this->relation_id = $po->relation_id;
        $this->price = $po->price;
        $this->type = $type;
    }
}